<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
      <%@include file="/common/common.jsp" %> 
       <%
    String path = request.getContextPath();
	if (path.equals("/")) {path = "";}
	pageContext.setAttribute("path", path);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>右</title>
<link rel="stylesheet" type="text/css" href="${path }/css/web/css.css" />
<link rel="stylesheet" type="text/css" href="${path }/css/web/left.css" />
</head>
<body>

	<div class="mian">
		<s:if test="'ordinary'.equals(#request.type)">
			<div class="left"><div class="left_kj">
			    <div class="title"><span><s:property value="#request.ordinary.name" /></span></div>
			    <div class="nr">
					<s:property value="#request.ordinary.content" escape="false" />
				</div></div></div>
		</s:if>
		<s:elseif test="'special'.equals(#request.type)">
		    <div class="left"><div class="left_kj">
		    <div class="title"><span><s:property value="#requset.specialName" /></span></div>
		    <div class="nr">
		    <ul>
		    	<s:iterator value="#request.pageModel.list">
					<li><a href="newsInfo.php?nid=71" title="<s:property value="title" />" class="l"><s:property value="title" /></a><span class="Newstime"><s:date name="updateTime" format="yyyy-MM-dd"/></span></li>		    	
		    	</s:iterator>
			</ul>
		   	<div id="page">共<strong><s:property value="#request.pageModel.total" /></strong>条记录，
		   	每页显示<strong>12</strong>条记录　
		
				<pg:pager url="${url }" items="${request.pageModel.total }" export="currentPageNumber=pageNumber" maxPageItems="12" isOffset="true">
										<pg:param name="id"/>
										<pg:first>
												<a href="${pageUrl}"><span style='color:#666'>首页</span></a>
										</pg:first>
										<pg:prev>
											<a href="${pageUrl }"><span style='color:#666'>上一页</span></a>
										</pg:prev>
										<pg:pages>
											<c:choose>
												<c:when test="${currentPageNumber eq pageNumber }">
													${pageNumber }
												</c:when>
												<c:otherwise>
													<a href="${pageUrl }">${pageNumber }</a>
												</c:otherwise>
											</c:choose>
										</pg:pages>
										<pg:next>
											<a href="${pageUrl }"><span style='color:#666'>下一页</span></a>
										</pg:next>
										<pg:last>
											<a href="${pageUrl }"><span style='color:#666'>末页</span></a>
										</pg:last>
								</pg:pager>
								</div>
		    </div>
		    </div>
		    </div>
		</s:elseif>
	    
    </div>

</body>
</html>